﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace MobileSMSRemote
{
    public static class SmsCommandHelper
    {
        public static ISmsCommand GetSmsCommandByName(string name)
        {
            ISmsCommand smsCommand = null;

            switch (name)
            {
                case "DateTimeSmsCommand":
                    smsCommand = new DateTimeSmsCommand();
                    break;
                case "GpsSmsCommand":
                    smsCommand = new GpsSmsCommand();
                    break;
                case "ProcessSmsCommand":
                    smsCommand = new ProcessSmsCommand();
                    break;
            }

            return smsCommand;
        }
    }
}
